package meijuli.com.join51.business.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 公告
 *
 * @author jack 2017-05-15 11:05
 */
public class Announcement implements Parcelable{
    private String content;
    private long createTime;
    private String createUserid;
    private String dmId;
    private int status;
    private String title;

    public Announcement() {}

    protected Announcement(Parcel in) {
        content = in.readString();
        createTime = in.readLong();
        createUserid = in.readString();
        dmId = in.readString();
        status = in.readInt();
        title = in.readString();
    }

    public static final Creator<Announcement> CREATOR = new Creator<Announcement>() {
        @Override
        public Announcement createFromParcel(Parcel in) {
            return new Announcement(in);
        }

        @Override
        public Announcement[] newArray(int size) {
            return new Announcement[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(content);
        parcel.writeLong(createTime);
        parcel.writeString(createUserid);
        parcel.writeString(dmId);
        parcel.writeInt(status);
        parcel.writeString(title);
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public String getCreateUserid() {
        return createUserid;
    }

    public void setCreateUserid(String createUserid) {
        this.createUserid = createUserid;
    }

    public String getDmId() {
        return dmId;
    }

    public void setDmId(String dmId) {
        this.dmId = dmId;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
